/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kom.crafting;

import java.util.ArrayList;
import java.util.List;
import kom.item.Item;
import kom.item.resource.Resource;
import kom.item.resource.ResourceItem;

/**
 *
 * @author Nathan
 */

public class Recipe {

    public List<Item> costs = new ArrayList<Item>();
    public boolean canCraft = false;
    public Item resultTemplate;

    public Recipe(Item resultTemplate) {
        this.resultTemplate = resultTemplate;
    }

    public Recipe addCost(Resource resource, int count) {
        costs.add(new ResourceItem(resource, count));
        return this;
    }
}
